<script src="js/CertusFileUpload.js"></script>
<script src="js/workflow/SWBJLC/businessQuotation-BSB.js"></script>
<script src="js/CertusFileUpload.js"></script>
<section id="main-content">
    <section class="wrapper">
        <!--state overview end-->
        <div class="row">
            <div class="col-lg-12">
                <section class="panel">
                    <header class="panel-heading">
                        历史记录
                    </header>
                    <div class="panel-body">
                        <div id="piclogContainer" class="dlshouwen-grid-container"></div>
                        <div id="piclogToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
                    </div>
                </section>
                <section class="panel hideprice" style="display: none;">
                    <header class="panel-heading">
                        报价信息
                    </header>
                    <div class="panel-body">
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">分类</label>
                            <div class="col-sm-10">
                                <select class="form-control" ng-model="item.category" certus-required-polyfill>
                                    <option ng-repeat="x in categorySelect" value="{{x.category}}">
                                        {{x.categoryName}}
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">目录价*</label>
                            <div class="col-sm-10">
                                <div class="input-group m-bot15">
                                    <span class="input-group-addon">￥</span>
                                    <input type="text" certus-an-limit-length-num="13" certus-required-polyfill
                                        class="form-control" ng-model="item.cataPrice" autocomplete="off">
                                    <span class="input-group-addon">元</span>
                                </div>
                                <!-- <input type="text" onkeyup="clearNoNum(this)"  onblur="clearNoNum(this)" value="" min="0" class="form-control" string-to-number ng-model="item.cataPrice"> -->
                            </div>
                        </div>
                        <!-- <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">折扣率</label>
                            <div class="col-sm-10">
                                <input type="text" onkeyup="clearNoNum(this)"  onblur="clearNoNum(this)" value="" min="0" max="100" class="form-control" style="width:80%;display:inline-block"
                                    ng-model="item.discountedRate">
                                {{item.discountedRate + "%"}} <label class="control-label">折后价</label> {{"￥"
                                +item.cataPrice*item.discountedRate/100}}
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">税率</label>
                            <div class="col-sm-10">
                                <input type="text" onkeyup="clearNoNum(this)"  onblur="clearNoNum(this)" value="" min="0" class="form-control" style="width:80%;display:inline-block"
                                    ng-model="item.taxRate">
                                {{item.taxRate}}% <label class="control-label">含税价</label> {{"￥" +
                                item.cataPrice*item.taxRate/100}}
                            </div>
                        </div> -->
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">折扣价</label>
                            <div class="col-sm-5">
                                <div class="input-group m-bot15">
                                    <span class="input-group-addon">折扣率</span>
                                    <input type="text" certus-an-limit-length-num="3" max-value-limit="100"
                                        certus-required="" class="form-control" ng-model="item.discountedRate"
                                        autocomplete="off">
                                    <span class="input-group-addon">%</span>
                                </div>
                            </div>
                            <div class="col-sm-5">
                                <div class="input-group m-bot15">
                                    <span class="input-group-addon">￥</span>
                                    <input type="text" disabled class="form-control"
                                        value="{{item.cataPrice*item.discountedRate/100}}">
                                    <span class="input-group-addon">元</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">含税价</label>
                            <div class="col-sm-5">
                                <div class="input-group m-bot15">
                                    <span class="input-group-addon">税率</span>
                                    <input type="text" certus-an-limit-length-num="3" max-value-limit="100"
                                        certus-required="" class="form-control" ng-model="item.taxRate"
                                        autocomplete="off">
                                    <span class="input-group-addon">%</span>
                                </div>
                            </div>
                            <div class="col-sm-5">
                                <div class="input-group m-bot15">
                                    <span class="input-group-addon">￥</span>
                                    <input type="text" disabled class="form-control"
                                        value="{{(item.cataPrice*item.discountedRate/100)*(1+item.taxRate/100)}}">
                                    <span class="input-group-addon">元</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">说明</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" maxlength="120" ng-model="item.descriptor"></textarea>
                            </div>
                        </div>

                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info"
                                ng-click="hideprice();">取消</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info"
                                ng-click="quoteItemSubmit()">确认</a>
                        </p>
                    </div>
                </section>
                <section class="panel add-heading">
                    <header class="panel-heading">
                        报价条目
                        <i class="add-icon icon-plus" onclick="showprice()"> 新增</i>
                    </header>
                    <div class="panel-body">
                        <div id="priceContainer" class="dlshouwen-grid-container"></div>
                        <div id="priceToolBarContainer" class="dlshouwen-grid-toolbar-container"></div>
                    </div>
                </section>
                <section class="panel hidefile" style="display: none;">
                    <header class="panel-heading">
                        文件上传
                    </header>
                    <div class="panel-body bio-graph-info">
                        <div ng-include="'templates/upload-file.html'"></div>
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info">清空</a>
                            <a href="javascript:void(0);" class="button-next  btn btn-info" onclick="hidefile();">取消</a>
                        </p>
                    </div>
                </section>
                <section class="panel hide-quote-panel">
                    <header class="panel-heading">
                        商务报价
                    </header>
                    <div class="panel-body">

                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">商务报价总价</label>
                            <div class="col-sm-10">
                                <input type="text" onkeyup="clearNoNum(this)" onblur="clearNoNum(this)" value=""
                                    class="form-control" string-to-number ng-model="business.totalBusinessQuatation">
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">商务信息预测</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" maxlength="120"
                                    ng-model="business.businessInfoPredict"></textarea>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">申请说明</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" maxlength="120" ng-model="business.applyDesc"></textarea>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">退回说明</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" maxlength="120" disabled
                                    ng-model="business.opinionMsg"></textarea>
                            </div>
                        </div>
                        <div class="form-group customerForm">
                            <label class="col-sm-2 control-label">报价文件</label>
                            <div class="col-sm-10">
                                <a class="update-icon" onclick="showfile();">上传附件</a>
                                <a class="update-icon" onclick="downLoadFile()">原文件下载</a>
                            </div>
                        </div>


                    </div>
                </section>

                <section class="panel">
                    <div class="panel-body">
                        <p class="default-buttons">
                            <a href="javascript:void(0);" class="button-back btn btn-info"
                                onclick="window.history.back()">返回</a>
                            <!--<a href="javascript:void(0);" class="button-next  btn btn-success" ng-click="businessQuoteApprove()">确认提交</a>-->
                        </p>
                    </div>
                </section>
            </div>
        </div>
    </section>
</section>



<div ng-include="'templates/workflow/scheduled/processs.html'"></div>